
package com.quartet.utils.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * <p>
 * 终端类型
 * </p>
 *
 * @author Zheng Jie
 * @date 2020-05-07
 */
@Getter
@AllArgsConstructor
public enum TerminalTypeEnum {

    POSITION("1", "位置"),
    VIDEO("2", "视频");
    private final String value;
    private final String description;

    public static TerminalTypeEnum find(String val) {
        for (TerminalTypeEnum dataScopeEnum : TerminalTypeEnum.values()) {
            if (val.equals(dataScopeEnum.getValue())) {
                return dataScopeEnum;
            }
        }
        return null;
    }

}
